package com.centling.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.centling.dao.UserDAO;
import com.centling.domain.User;

@Component
public class UserService {

	@Autowired
	private UserDAO userDAO;
	
	
	public void saveUser(User u){
		System.out.println(userDAO);
		userDAO.saveUser(u);
	}


	public UserDAO getUserDAO() {
		return userDAO;
	}


	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}
	
	
	
}
